#ifndef GFXUTILS_H
#define GFXUTILS_H

#include <gccore.h>

GXRModeObj* VideoInit();
void* getCurrentFrameBuffer();
void* getSpareFrameBuffer();
void blankScreen();
void swapFrameBuffers();
void waitVSync();

void GraphicsInit();
void loadPngTiles(const u8* pngBuffer, int numCols, int numRows);
void drawTile( int x, int y, int width, int height, int image, f32 angle );
void renderToFrameBuffer(void* fb);
void drawRect(int x1, int y1, int width, int height, const GXColor &c, bool fill = true);
void drawShape(const int points[], int numPoints, const GXColor &c, bool fill = true);
void screenShot(const char* filename);

#endif

